package com.yb.guigu.pick.system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author 姚兵
 * @since 2023-06-11
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("banner")
@ApiModel(value = "Banner对象", description = "")
public class Banner {

    @ApiModelProperty("id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("banner的id，系统生成")
    @TableField("banner_id")
    private Integer bannerId;

    @ApiModelProperty("名称")
    @TableField("name")
    private String name;

    @ApiModelProperty("图片地址")
    @TableField("url")
    private String url;

    @ApiModelProperty("user_id创建人")
    @TableField("create_by")
    private Integer createBy;

    @ApiModelProperty("user_id更新人")
    @TableField("update_by")
    private Integer updateBy;

    @ApiModelProperty("排序规则")
    @TableField("sort")
    private Integer sort;

    @TableField("create_time")
    private LocalDateTime createTime;

    @TableField("update_time")
    private LocalDateTime updateTime;


}
